package com.wnxy.sddfp.api.system;

import com.wnxy.sddfp.common.model.vo.user.UserInfoVo;
import com.wnxy.sddfp.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

// feign客户端接口，指定对应的服务实例名称
@FeignClient("sddfp-system-service")
public interface UserApi {
    @GetMapping("/user/inner/findById/{id}")
    Result<UserInfoVo> findById(@PathVariable("id") Long userId);
}
